<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<meta name="keywords" content="缺考功能" />
	<meta name="description" content="缺考功能" />
	<!-- 网页标签标题 -->
	<title>缺考功能开发</title>
	<link rel="shortcut icon" href="/my-project/img/docsite.ico"/>
	<link rel="stylesheet" href="/my-project/build/blogDetail.css" />
</head>
<body>
	<div id="root"><div class="blog-detail-page" data-reactroot=""><header class="header-container header-container-normal"><div class="header-body"><a href="/my-project/zh-cn/index.html"><img class="logo" src="/my-project/img/dubbo_colorful.png"/></a><div class="search search-normal"><span class="icon-search"></span></div><span class="language-switch language-switch-normal">En</span><div class="header-menu"><img class="header-menu-toggle" src="/my-project/img/system/menu_gray.png"/><ul><li class="menu-item menu-item-normal"><a href="/my-project/zh-cn/index.html" target="_self">首页</a></li><li class="menu-item menu-item-normal"><a href="/my-project/zh-cn/docs/demo1.html" target="_self">文档</a></li><li class="menu-item menu-item-normal menu-item-normal-active"><a href="/my-project/zh-cn/blog/index.html" target="_self">博客</a></li><li class="menu-item menu-item-normal"><a href="/my-project/zh-cn/community/index.html" target="_self">社区</a></li></ul></div></div></header><section class="blog-content markdown-body"><h5>添加缺考功能按钮</h5>
<pre><code class="language-html">  <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"btnDel"</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"button"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"btn btn-danger "</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">i</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"fa fa-ban"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span>&amp;nbsp;&amp;nbsp;<span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"bold"</span>&gt;</span>缺考<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
   <span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
</code></pre>
<h5>添加缺考接口</h5>
<pre><code class="language-java">  <span class="hljs-comment">/**
     * 缺考
     *
     * <span class="hljs-doctag">@param</span> examAchievement 成绩总分表
     * <span class="hljs-doctag">@return</span> java.lang.Object
     * <span class="hljs-doctag">@author</span> xly
     * <span class="hljs-doctag">@date</span> 10:32 2019/4/30
     **/</span>
    <span class="hljs-meta">@RequestMapping</span>(value = <span class="hljs-string">"missExam"</span>)
    <span class="hljs-meta">@ResponseBody</span>
    <span class="hljs-function"><span class="hljs-keyword">public</span> Object <span class="hljs-title">missExam</span><span class="hljs-params">(ExamAchievement examAchievement)</span> </span>{
        achievementService.missExam(examAchievement);
        <span class="hljs-keyword">return</span> sendSuccessMessage(<span class="hljs-string">"保存成功"</span>);
    }
</code></pre>
<h5>缺考sql</h5>
<pre><code class="language-mysql">   &lt;update id=&quot;missExam&quot;&gt;
        UPDATE T_EXAM_ACHIEVEMENT SET
        EXAM_STATUS = #{EXAM_MISS}
        WHERE 1=1
        &lt;foreach collection=&quot;deleteIds&quot; item=&quot;item&quot; open=&quot; and (&quot;
                 separator=&quot; OR &quot; close=&quot;)&quot;&gt;
            ID = #{item}
        &lt;/foreach&gt;
    &lt;/update&gt;
</code></pre>
</section><footer class="footer-container"><div class="footer-body"><img src="/my-project/img/dubbo_gray.png"/><div class="cols-container"><div class="col col-12"><h3>免责声明</h3><p>免责声明的具体内容</p></div><div class="col col-6"><dl><dt>文档</dt><dd><a href="/my-project/zh-cn/docs/demo1.html" target="_self">概览</a></dd><dd><a href="/my-project/zh-cn/docs/demo2.html" target="_self">快速开始</a></dd><dd><a href="/my-project/zh-cn/docs/dir/demo3.html" target="_self">开发者指南</a></dd></dl></div><div class="col col-6"><dl><dt>资源</dt><dd><a href="/my-project/zh-cn/blog/index.html" target="_self">博客</a></dd><dd><a href="/my-project/zh-cn/community/index.html" target="_self">社区</a></dd></dl></div></div><div class="copyright"><span>Copyright © 2018 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</span></div></div></footer></div></div>
	<script src="https://f.alicdn.com/react/15.4.1/react-with-addons.min.js"></script>
	<script src="https://f.alicdn.com/react/15.4.1/react-dom.min.js"></script>
	<script>
		window.rootPath = '/my-project';
  </script>
	<script src="/my-project/build/blogDetail.js"></script>
</body>
</html>